﻿<%@ Page Title="零件下载" Language="C#" MasterPageFile="~/masterPage/admin/SAClient.master"
    AutoEventWireup="true" CodeFile="FamilyDownFrm.aspx.cs" Inherits="SAClientWeb_FamilyDownFrm" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
        <Windows>
            <telerik:RadWindow ID="RadWindow1" runat="server" ShowContentDuringLoad="false" Title="Telerik RadWindow"
                Behaviors="Default">
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>
    <script type="text/javascript">
        function change() {
            var win = window.radopen('DownLoadFrm.aspx', 'Details');
            win.setSize(600, 300);
            win.center();
        }
    </script>
    <telerik:RadDockZone ID="RadDockZonen" runat="server" Width="915px" Height="620px">
        <telerik:RadDock ID="RadDockn" runat="server" Title="类别" DefaultCommands="None" BorderStyle="None"
            CloseText="关闭" CollapseText="收起" ExpandText="展开" DockHandle="None" Collapsed="false"
            Resizable="true" Pinned="true" EnableDrag="false">
            <ContentTemplate>
                <telerik:RadTabStrip runat="server" ID="tabControl_parameterSelection" MultiPageID="RadMultiPage1" OnTabClick="tabControl_Click">
                    <Tabs>
                        <telerik:RadTab Text="驱动参数" runat="server" PageViewID="tabPage_ParamSelection">
                        </telerik:RadTab>
                        <telerik:RadTab Text="参数明细" runat="server" PageViewID="tabPage_FamilyTable">
                        </telerik:RadTab>
                    </Tabs>
                </telerik:RadTabStrip>
                <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">
                    <telerik:RadPageView ID="tabPage_ParamSelection" runat="server">
                        <table>
                            <tr>
                                <td valign="top" width="550px">
                                    <telerik:RadDockZone ID="rdzNavigator" runat="server">
                                        <telerik:RadDock ID="rdSearchKey" runat="server" DefaultCommands="None" DockMode="Docked"
                                            CloseText="关闭" CollapseText="收起" ExpandText="展开" EnableRoundedCorners="true"
                                            Collapsed="false" Resizable="false" Pinned="true" EnableDrag="false" Title="驱动参数">
                                            <ContentTemplate>
                                                <telerik:RadBinaryImage ID="pictureBox_ModelPic" runat="server" Width="250px" Height="300px"
                                                    ResizeMode="Fit" ImageUrl="~/images/bar-2.gif" />
                                                <telerik:RadBinaryImage ID="pictureBox_DrawingPic" runat="server" Width="250px" Height="300px"
                                                    ResizeMode="Fit" ImageUrl="~/images/bg_01.gif" />
                                                    <br />
                                                <telerik:RadListView ID="listBox_NonCustomParamList1" runat="server" DataKeyNames="FamilyID,ID"
                                                    EnablePersistedSelection="false" AllowPaging="True" 
                                                    onitemdatabound="listBox_NonCustomParamList1_ItemDataBound">
                                                    <ItemTemplate>
                                                        <tr style="background: #fff; font: 12px/16px segoe ui; line-height: 25px;">
                                                            <td>
                                                                <asp:Label ID="NameLabel" runat="server" Text='<%# Eval("DisplayName") %>'></asp:Label>
                                                            </td>
                                                             <td>
                                                             <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
                                                             <telerik:RadComboBox id="ddl" runat="server"  AutoPostBack="true" onselectedindexchanged="ddl_SelectedIndexChanged"
                                                             EnableLoadOnDemand="True" MarkFirstMatch="True"  EnableVirtualScrolling="true" OnItemsRequested="ddl_ItemsRequested">
                                                             </telerik:RadComboBox>
                                                             </telerik:RadAjaxPanel>
                                                            </td>
                                                        </tr>
                                                    </ItemTemplate>
                                                    <AlternatingItemTemplate>
                                                         <tr style="background: #fff; font: 12px/16px segoe ui; line-height: 25px;">
                                                            <td>
                                                                <asp:Label ID="NameLabel" runat="server" Text='<%# Eval("DisplayName") %>'></asp:Label>
                                                            </td>
                                                             <td>
                                                             <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
                                                            <telerik:RadComboBox id="ddl" runat="server"  AutoPostBack="true" onselectedindexchanged="ddl_SelectedIndexChanged"
                                                             EnableLoadOnDemand="True" MarkFirstMatch="True"  EnableVirtualScrolling="true" OnItemsRequested="ddl_ItemsRequested">
                                                             </telerik:RadComboBox>
                                                             </telerik:RadAjaxPanel>
                                                            </td>
                                                        </tr>
                                                    </AlternatingItemTemplate>
                                                    <EmptyDataTemplate>
                                                        <table id="Table1" runat="server" style="">
                                                            <tr>
                                                                <td>
                                                                    没有数据.
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </EmptyDataTemplate>
                                                    <LayoutTemplate>
                                                        <table id="Table2" runat="server" cellpadding="0" cellspacing="0" style="border: 1px solid #C3C3C3;
                                                            width: 100%;">
                                                            <tr id="Tr1" runat="server">
                                                                <td id="Td1" runat="server">
                                                                    <table id="itemPlaceholderContainer" runat="server" border="0" style="font: 12px/16px segoe ui;
                                                                        width: 100%;" cellspacing="0">
                                                                        <tr id="Tr2" runat="server" style="background: #EDEDED; line-height: 25px;">
                                                                            <th id="Th1" runat="server" style="text-align: left; font-weight: normal;">
                                                                                名称
                                                                            </th>
                                                                            <th id="Th2" runat="server" style="text-align: left; font-weight: normal;">
                                                                                名称
                                                                            </th>
                                                                        </tr>
                                                                        <tr id="itemPlaceholder" runat="server">
                                                                        </tr>
                                                                    </table>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </LayoutTemplate>
                                                </telerik:RadListView>
                                            </ContentTemplate>
                                        </telerik:RadDock>
                                    </telerik:RadDockZone>
                                </td>
                                <td width="300px" valign="top">
                                    <telerik:RadDockZone ID="RadDockZone1" runat="server">
                                        <telerik:RadDock ID="RadDock3" runat="server" DefaultCommands="None" EnableRoundedCorners="true"
                                            CloseText="关闭" CollapseText="收起" ExpandText="展开" DockMode="Docked" Collapsed="false"
                                            Resizable="false" Pinned="true" EnableDrag="false" Title="用户参数">
                                            <ContentTemplate>
                                                <asp:ListView ID="listBox_CustomParamList1" runat="server" DataKeyNames="FamilyID"
                                                    EnablePersistedSelection="false" AllowPaging="True">
                                                    <ItemTemplate>
                                                        <tr style="background: #fff; font: 12px/16px segoe ui; line-height: 25px;">
                                                            <td>
                                                                <asp:Label ID="NameLabel" runat="server" Text='<%# Eval("DisplayName") %>'></asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="Label1" runat="server" Text='<%# Eval("Value") %>'></asp:TextBox>
                                                            </td>
                                                            <td style="display: none;">
                                                                <asp:LinkButton ID="SelectButton2" runat="server" Text="選択" CommandArgument='<%#Eval("FamilyID")%>'
                                                                    OnClick="LbtnLink_Click" />
                                                            </td>
                                                        </tr>
                                                    </ItemTemplate>
                                                    <AlternatingItemTemplate>
                                                        <tr style="background: #EDEDED; font: 12px/16px segoe ui; line-height: 25px;">
                                                            <td>
                                                                <asp:Label ID="NameLabel" runat="server" Text='<%# Eval("DisplayName") %>'></asp:Label>
                                                            </td>
                                                             <td>
                                                                <asp:TextBox ID="Label1" runat="server" Text='<%# Eval("Value") %>'></asp:TextBox>
                                                            </td>
                                                            <td style="display: none;">
                                                                <asp:LinkButton ID="SelectButton2" runat="server" Text="選択" CommandArgument='<%#Eval("FamilyID")%>'
                                                                    OnClick="LbtnLink_Click" />
                                                            </td>
                                                        </tr>
                                                    </AlternatingItemTemplate>
                                                    <EmptyDataTemplate>
                                                        <table id="Table1" runat="server" style="">
                                                            <tr>
                                                                <td>
                                                                    没有数据.
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </EmptyDataTemplate>
                                                    <LayoutTemplate>
                                                        <table id="Table2" runat="server" cellpadding="0" cellspacing="0" style="border: 1px solid #C3C3C3;
                                                            width: 100%;">
                                                            <tr id="Tr1" runat="server">
                                                                <td id="Td1" runat="server">
                                                                    <table id="itemPlaceholderContainer" runat="server" border="0" style="font: 12px/16px segoe ui;
                                                                        width: 100%;" cellspacing="0">
                                                                        <tr id="Tr2" runat="server" style="background: #EDEDED; line-height: 25px;">
                                                                            <th id="Th1" runat="server" style="text-align: left; font-weight: normal;">
                                                                                名称
                                                                            </th>
                                                                        </tr>
                                                                        <tr id="itemPlaceholder" runat="server">
                                                                        </tr>
                                                                    </table>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </LayoutTemplate>
                                                </asp:ListView>
                                            </ContentTemplate>
                                        </telerik:RadDock>
                                    </telerik:RadDockZone>
                                </td>
                            </tr>
                        </table>
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="tabPage_FamilyTable" runat="server">
                        <telerik:RadDockZone ID="RadDockZone3" runat="server">
                            <telerik:RadDock ID="RadDock1" runat="server" Title="参数明细" CloseText="关闭" CollapseText="收起"
                                DefaultCommands="None" DockMode="Docked" ExpandText="展开" EnableRoundedCorners="true"
                                Collapsed="false" Resizable="false" Pinned="true" EnableDrag="false">
                                <ContentTemplate>
                                    <div style="width: 870px; height: 500px; background-color: gray;">
                                        <telerik:RadGrid ID="dataGridView_subFamilyTable" runat="server">
                                         <ClientSettings EnableRowHoverStyle="true">
            <Selecting AllowRowSelect="True"></Selecting>
        </ClientSettings>
                                        </telerik:RadGrid>
                                    </div>
                                </ContentTemplate>
                            </telerik:RadDock>
                        </telerik:RadDockZone>
                    </telerik:RadPageView>
                </telerik:RadMultiPage>
                <div style="text-align: center; width: 900px;">
                                                    下载类型：
                                    <telerik:RadComboBox id="comboBox_filetype" runat="server"  EnableTextSelection="false">
                                        <Items>
                                            <telerik:RadComboBoxItem  Text="STP"/>
                                            <telerik:RadComboBoxItem Text="IGS"/>
                                            <telerik:RadComboBoxItem Text="DWF"/>
                                            <telerik:RadComboBoxItem Text="SAT"/>
                                            <telerik:RadComboBoxItem Text="IPT"/>
                                        </Items>
                                                    </telerik:RadComboBox>
                    <asp:Button ID="button_downDoc" runat="server" Text="下载文档" OnClick="button_downDoc_Click" />&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="button_downLoad" runat="server" Text="下载模型" OnClick="button_downLoad_Click" />&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="button_close" runat="server" Text="关闭" OnClick="button_close_Click" />
                </div>
            </ContentTemplate>
        </telerik:RadDock>
    </telerik:RadDockZone>
</asp:Content>
